home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000154 / patchSG0000154.idb / usr / share / src / OpenGL / examples / README.z / README
Encoding:
Text File  |  1995-06-12  |  3.0 KB  |  63 lines

  1. The source code examples in this directory accompany the examples
  2. printed in the _OpenGL Programming Guide_, published by Addison-Wesley;
  3. ISBN 0-201-63274-8.
  4.  
  5. The source code examples here need to be compiled with libaux.a
  6. (which in turn needs files from libtk.a).
  7.  
  8. /*
  9.  *    For the software in this directory
  10.  * (c) Copyright 1993, Silicon Graphics, Inc.
  11.  * ALL RIGHTS RESERVED 
  12.  * Permission to use, copy, modify, and distribute this software for 
  13.  * any purpose and without fee is hereby granted, provided that the above
  14.  * copyright notice appear in all copies and that both the copyright notice
  15.  * and this permission notice appear in supporting documentation, and that 
  16.  * the name of Silicon Graphics, Inc. not be used in advertising
  17.  * or publicity pertaining to distribution of the software without specific,
  18.  * written prior permission. 
  19.  *
  20.  * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
  21.  * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
  22.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
  23.  * FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
  24.  * GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
  25.  * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
  26.  * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
  27.  * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
  28.  * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
  29.  * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
  30.  * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
  31.  * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
  32.  * 
  33.  * US Government Users Restricted Rights 
  34.  * Use, duplication, or disclosure by the Government is subject to
  35.  * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
  36.  * (c)(1)(ii) of the Rights in Technical Data and Computer Software
  37.  * clause at DFARS 252.227-7013 and/or in similar or successor
  38.  * clauses in the FAR or the DOD or NASA FAR Supplement.
  39.  * Unpublished-- rights reserved under the copyright laws of the
  40.  * United States.  Contractor/manufacturer is Silicon Graphics,
  41.  * Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
  42.  *
  43.  * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
  44.  */
  45.  
  46. To compile these examples, there are two directories:  libtk and libaux,
  47. which contain helper routines to open and manage windows and handle
  48. events (such as keyboard and mouse input).  You'll want to compile the
  49. libtk library, then the libaux library, and then the book examples.
  50.  
  51. On an X Window System-based machine, you are advised to use a Makefile.  
  52. There are Imakefiles (system independent files used to generate Makefiles)
  53. in each of those directories, to help you create a Makefile, no matter 
  54. what system you are on.   To create such a Makefile, use the imake routine.
  55. For example, on a Silicon Graphics workstation, you might issue the command:
  56.  
  57.         % imake -I/usr/lib/X11/config -DUseInstalled
  58.  
  59. Then use the Makefiles generated to compile the libraries:
  60.  
  61.         % make 
  62.  
  63.